using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Test.Offsite {
	class Printers {


		static void MainXx() {
			string file="UPOS2.bar";
			for(int i=1;i<=60;i++)
			{
				File.AppendAllText(file,string.Format("123456789{0:000000},",i));
				if(i%4==0)
					File.AppendAllText(file,Environment.NewLine);
			}

		}
		static void MainX() {
			List<string> printers=new List<string>();
			foreach(string fi in Directory.GetFiles(@"\\pon-wpmq01-cl02\c$\Program Files\Next.Whs.NtnLabelPrint.Processor\Log\"))
				foreach(string lines in File.ReadAllLines(fi))
					if(!printers.Contains(lines.Substring(18,10).Trim()))
						printers.Add(lines.Substring(18,10).Trim());
			printers.Sort();
			foreach(string str in printers)
			{
				Console.WriteLine(str);
			}

		}
	}
}
